package com.doubletick.proxy.ipidea.domain;

import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.doubletick.common.annotation.Excel;
import com.doubletick.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 代理账号流量对象 t_proxy_account_flow
 *
 * @author ruoyi
 * @date 2024-07-08
 */
@Data
public class ProxyAccountFlow extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 用戶id
     */
    @Excel(name = "用戶id")
    private Long userId;

    @TableField(exist = false)
    private String username;

    /**
     * 代理id
     */
    @Excel(name = "代理id")
    private String proxyId;

    /**
     * 返回的
     */
    @Excel(name = "返回的")
    private Long day;

    /**
     * 数据时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "数据时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;

    /**
     * 流量M
     */
    @Excel(name = "流量M")
    private BigDecimal global;


    @TableField(exist = false)
    private String proxyAccount;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date createTime;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
